import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// 引入四个页面
import home from '../components/home.vue'
import vip from '../components/vip.vue'
import shopcar from '../components/shopcar.vue'
import search from '../components/search.vue'
import newsList from '../components/news/newsList.vue'
import newsIofo from '../components/news/newsInfo.vue'

Vue.use(Router)


export default new Router({
    routes: [{ path: '/', redirect: '/home' },
        { path: '/home', component: home },
        { path: '/vip', component: vip },
        { path: '/shopcar', component: shopcar },
        { path: '/search', component: search },
        { path: '/home/newsList', component: newsList },
        { path: '/home/newsList/:id', component: newsIofo }
    ],
    linkActiveClass: 'mui-active'
})